--------------------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  X:\shared\ambulance\Work\replicationpackage\logs\stacked_regression.log
  log type:  text
 opened on:  13 Jul 2024, 12:06:59

. 
. /*******************************************************************************
> stacked_regression.do
> 
> Analyzes district-level data using stacked regression
> *******************************************************************************/
. 
. clear all

. 
. qui {

. 
. qui reghdfe log_tot_pmt ib99.months_since100 i.prior_auth i.post_crim, a(dist_wave month_wave) cluster(dist_code)

. coefplot, keep(*months_since*) vert baselevel ///
>         recast(connected) ciopts(recast(rcap) color(navy)) ///
>         xti(Months Since First Civil Enforcement) ///
>         xlab(1 "-24" 7 "-18" 13 "-12" 19 "-6" 25 "0" ///
>                 31 "6" 37 "12" 43 "18" 49 "24") ///
>         xline(25, lcolor(gs8) lpattern(dash)) yline(0, lcolor(gs8)) ///
>         yti("Total Payments in District (Logs)") ///
>         ylab(, angle(0) nogrid) ///
>         graphregion(color(white)) bgcolor(white)

. qui {

. 
. qui reghdfe log_tot_pmt ib99.months_since100 i.prior_auth i.post_civ, a(dist_wave month_wave) cluster(dist_code)

. coefplot, keep(*months_since*) vert baselevel ///
>         recast(connected) ciopts(recast(rcap) color(navy)) ///
>         xti(Months Since First Criminal Enforcement) ///
>         xlab(1 "-24" 7 "-18" 13 "-12" 19 "-6" 25 "0" ///
>                 31 "6" 37 "12" 43 "18" 49 "24") ///
>         xline(25, lcolor(gs8) lpattern(dash)) yline(0, lcolor(gs8)) ///
>         yti("Total Payments in District (Logs)") ///
>         ylab(, angle(0) nogrid) ///
>         graphregion(color(white)) bgcolor(white)

. qui {

. 
. qui reghdfe log_tot_pmt ib99.months_since100 i.post_crim i.post_civ, a(dist_wave month_wave) cluster(dist_code)

. coefplot, keep(*months_since*) vert baselevel ///
>         recast(connected) ciopts(recast(rcap) color(navy)) ///
>         xti(Months Since Prior Authorization Implementation) ///
>         xlab(1 "-24" 7 "-18" 13 "-12" 19 "-6" 25 "0" ///
>                 31 "6" 37 "12" 43 "18" 49 "24") ///
>         xline(25, lcolor(gs8) lpattern(dash)) yline(0, lcolor(gs8)) ///
>         yti("Total Payments in District (Logs)") ///
>         ylab(, angle(0) nogrid) ///
>         graphregion(color(white)) bgcolor(white)

. qui {

. 
. qui reghdfe log_active_firms ib99.months_since100 i.post_crim i.post_civ, a(dist_wave month_wave) cluster(dist_code)

. coefplot, keep(*months_since*) vert baselevel ///
>         recast(connected) ciopts(recast(rcap) color(navy)) ///
>         xti(Months Since Prior Authorization Implementation) ///
>         xlab(1 "-24" 7 "-18" 13 "-12" 19 "-6" 25 "0" ///
>                 31 "6" 37 "12" 43 "18" 49 "24") ///
>         xline(25, lcolor(gs8) lpattern(dash)) yline(0, lcolor(gs8)) ///
>         yti("Active Firms in District (Logs)") ///
>         ylab(, angle(0) nogrid) ///
>         graphregion(color(white)) bgcolor(white)

. qui {

.         
. log close
      name:  <unnamed>
       log:  X:\shared\ambulance\Work\replicationpackage\logs\stacked_regression.log
  log type:  text
 closed on:  13 Jul 2024, 12:07:18
--------------------------------------------------------------------------------------------------------------------------------------------------------
